package com.isdepci.project.carbon.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.isdepci.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 产品碳足迹对象 a_product_carbon
 *
 * @author isdepci
 * @date 2024-11-07
 */
public class ProductCarbon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 门类 */
    private String level0;

    /** 大类 */
    private String level1;

    /** 中类 */
    private String level2;

    /** 小类 */
    private String level3;

    /** 产品名称 */
    private String productName;
    private Long productId;

    /** 所属企业 */
    private Long enterpriseId;

    /** 产品批次 */
    private String productBatch;

    /** 碳排放核算量 */
    private BigDecimal carbonAccountQuantity;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date adjustTime;

    public ProductCarbon(){}
    public ProductCarbon(Long id,BigDecimal carbonAccountQuantity,Date adjustTime){
        this.id=id;
        this.carbonAccountQuantity=carbonAccountQuantity;
        this.adjustTime=adjustTime;
    }

    private List<ProductCarbonStage> stageList;
    private List<ProductCarbonConsumables> consumables;

    public List<ProductCarbonConsumables> getConsumables() {
        return consumables;
    }

    public void setConsumables(List<ProductCarbonConsumables> consumables) {
        this.consumables = consumables;
    }

    public List<ProductCarbonStage> getStageList() {
        return stageList;
    }

    public void setStageList(List<ProductCarbonStage> stageList) {
        this.stageList = stageList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLevel0(String level0)
    {
        this.level0 = level0;
    }

    public String getLevel0()
    {
        return level0;
    }
    public void setLevel1(String level1)
    {
        this.level1 = level1;
    }

    public String getLevel1()
    {
        return level1;
    }
    public void setLevel2(String level2)
    {
        this.level2 = level2;
    }

    public String getLevel2()
    {
        return level2;
    }
    public void setLevel3(String level3)
    {
        this.level3 = level3;
    }

    public String getLevel3()
    {
        return level3;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setEnterpriseId(Long enterpriseId)
    {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseId()
    {
        return enterpriseId;
    }
    public void setProductBatch(String productBatch)
    {
        this.productBatch = productBatch;
    }

    public String getProductBatch()
    {
        return productBatch;
    }
    public void setCarbonAccountQuantity(BigDecimal carbonAccountQuantity)
    {
        this.carbonAccountQuantity = carbonAccountQuantity;
    }

    public BigDecimal getCarbonAccountQuantity()
    {
        return carbonAccountQuantity;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Date getAdjustTime() {
        return adjustTime;
    }

    public void setAdjustTime(Date adjustTime) {
        this.adjustTime = adjustTime;
    }
}
